namespace Ross.OA.EntityFramework.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class AddApiLog : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.Log_ApiLog",
                c => new
                    {
                        Id = c.Long(nullable: false, identity: true),
                        ApiName = c.String(nullable: false, maxLength: 50),
                        InsertTime = c.DateTime(nullable: false),
                        AskTime = c.DateTime(nullable: false),
                        AskContent = c.String(),
                        BackTime = c.DateTime(nullable: false),
                        BackContent = c.String(),
                        SpareText1 = c.String(maxLength: 50),
                        SpareText2 = c.String(maxLength: 50),
                        SpareText3 = c.String(maxLength: 50),
                    })
                .PrimaryKey(t => t.Id);
            
        }
        
        public override void Down()
        {
            DropTable("dbo.Log_ApiLog");
        }
    }
}
